<?php

function icqStatus ($icq) {
    
    $url = 'http://www.icq.com/whitepages/';
    
    $status = 'http://status.icq.com/online.gif';
    
    $generateLink = true;
    
	$image = 5;

    $url .= 'cmd.php?uin='.$icq.'&action=add';
    
    $connect = '';
    
    if ( $generateLink )
        $connect .= '<a href="'.$url.'">';
    
    $connect.= '<img src="' . $status . '?icq=' . 
                $icq . '&img=' .$image . '" border="0">';
    
    if ( $generateLink )
        $connect.= '</a>';
    
    return $connect;  
}

function icqStatusMargin ($icq) {
    
    $url = 'http://www.icq.com/whitepages/';
    
    $status = 'http://status.icq.com/online.gif';
    
    $generateLink = true;
    
	$image = 5;

    $url .= 'cmd.php?uin='.$icq.'&action=add';
    
    $connect = '';
    
    if ( $generateLink )
        $connect .= '<a href="'.$url.'">';
    
    $connect.= '<img style="margin:0px" src="' . $status . '?icq=' . 
                $icq . '&img=' .$image . '" border="0" hspace="0" width="20" height="20">';
    
    if ( $generateLink )
        $connect.= '</a>';
    
    return $connect;  
}

?>